﻿<?php

function SwitchContent()
{
	$mod = "";
	if (isset($_GET['mod']))
		$mod = $_GET['mod'];
	
	switch ($mod)
	{
		case "news":
			include("news.php");
			break;
		case "about":
			include("about.php");
			break;
		case "contact":
			include("contact.php");
			break;
		case "map":
			header("Location: map1.php");
			break;
		case "admin":
			header("Location: admin/index.php");
			break;
		default:
			include("news.php");
			break;
	}
}

?>